﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
namespace Orange.Logistics.Models {
    public class Job {
        [Key]
        [Column("Id")]
        [Required(ErrorMessage = "*")]
        public int Id { get; set; }

        [Column("Name"), MaxLength(50, ErrorMessage = "输入过长")]
        [Required(ErrorMessage = "*")]
        public string Name { get; set; }

        [Column("Remark"), MaxLength(500, ErrorMessage = "输入过长")]
        [DataType(DataType.MultilineText)]
        public string Remark { get; set; }

        [Column("Status"), MaxLength(1, ErrorMessage = "输入过长")]
        public string Status { get; set; }

        [Column("Modifytime")]
        public DateTime Modifytime { get; set; }

        [Column("Modifyuser"), MaxLength(12, ErrorMessage = "输入过长")]
        public string Modifyuser { get; set; }
    }
}
